#include <stdio.h>

int
main(void)
{
	int sum_of_sqs = 0;
	int sum = 0;
	int sq_of_sums = 0;
	int i;

	for ( i = 1; i <= 100; i++ ) {
		sum_of_sqs += i*i;
		sum += i;
	}
	sq_of_sums = sum*sum;

	printf("%d\n", (sq_of_sums - sum_of_sqs));

	return 0;
}
